package com.nf.service;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestServiceImpl implements TestService{

    public TestServiceImpl(){
        System.out.println("TestServiceImpl被实例为Bean"+this);
    }

    @Override
    public String getDate() {
        Date now = new Date();
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        String myDateSrt = sf.format(now);
        return myDateSrt;
    }
}
